package 策略模式.second;

/**
 * @author xuanjian
 * 红头鸭
 */
public class RedheadDuck extends Duck implements Flyable,Quackable{

	@Override
	void display() {
		System.out.println("外观：红头");

	}

	@Override
	void type() {
		System.out.println("种类：红头鸭");
		
	}

	@Override
	public void quack() {
		System.out.println("叫法：“呱呱”叫！");
	}

	@Override
	public void fly() {
		System.out.println("飞法：带我飞吧～");
		
	}

	@Override
	public void test() {
		System.out.println("=================");
		super.test();
		quack();
		fly();
		System.out.println("=================");
	}
}
